#pragma once

#include "stdafx.h"
#include "stdSelfBulletLib.h"
#include "selfBullet.h"

class selfBulletManager
{
public:
	static selfBulletManager* Instance();
	void draw();
	void clear();
	void updata();
	//void add(selfBullet* b);
	void add(stdSelfBullet std, Point p, int power, int kind);
	void add(stdSelfBullet std, Point p,
		int power, int kind, int angle);
	list<selfBullet*> manager;
protected:
	selfBulletManager();
private:
	list<selfBullet*> freeMem;
	static selfBulletManager* _instance;
	int sumNum;
};